package cn.silver.module.message.helper;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * @author zhouxiaobo
 */
@Slf4j
@Component
@RequiredArgsConstructor
public class MessageApplicationRunner  implements ApplicationRunner {

    private final MessageServiceFactory factory;

    @Override
    public void run(ApplicationArguments args) {
        this.factory.init();
    }
}
